<html>
    <head>
        <title>Map the Debris</title>
        <!-- // <script src="../lib/jquery-1.11.2.min.js" type="text/javascript"></script> -->
    </head>
    <body>
        <script type="text/javascript">
            function orbitalPeriod(arr) {
                var GM = 398600.4418;
                var earthRadius = 6367.4447;
                for (var i = 0; i < arr.length; i++) {
                var a = earthRadius + arr[i].avgAlt;
                arr[i].orbitalPeriod = Math.round(Math.PI*2*Math.sqrt(a*a*a/GM));
                delete arr[i].avgAlt;
                }
                return arr;
            }


            orbitalPeriod([{name : "sputnik", avgAlt : 35873.5553}]);
        </script>
    </body>
</html>